﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class DMLOAITHUE:BusinessObject
    {
        public int MaLoaiThue { get; set; }
        public string TenLoaiThue { get; set; }
        public bool? IsUse { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }


        public DMLOAITHUE()
        {
            AddRule(new ValidateRequired("TenLoaiThue"));
            AddRule(new ValidateLength("TenLoaiThue", 1, 2));
        }

        public DMLOAITHUE(int maLoaiThue, string tenLoaiThue, bool? isUse, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            :this()
        {
            MaLoaiThue = maLoaiThue;
            TenLoaiThue = tenLoaiThue;
            IsUse = isUse;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }
    }
}
